import mysql.connector

mydb = mysql.connector.connect(
    host = '47.98.104.26',
    user = 'airong',
    passwd = 'airong1234',
    database = 'runoob_db'
)

mycursor = mydb.cursor()

mycursor.execute('select * from sites')
result = mycursor.fetchall()
for x in result:
    print(x)